package com.xd.study.fragment;

import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.xd.study.R;

/**
 * Created by DGF on 2015/4/24.
 */
public class DynamicFragment extends Fragment {

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        //return super.onCreateView(inflater, container, savedInstanceState);

        View view = inflater.inflate(R.layout.fragment, container, false);
        TextView textView = (TextView)view.findViewById(R.id.fragment_textview);
        textView.setText("动态加载Fragment");

        return view;
    }
}
